﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntelliLance.Math.Parser
{
    /// <summary>
    /// Provides helper methods for throwing common exceptions.
    /// </summary>
    public class ThrowHelpers
    {
        internal static void ThrowEmptyString(string p)
        {
            throw new ArgumentException(string.Format("Empty string parameter: {0}", p));
        }

        internal static void ThrowNullArgument(string p)
        {
            throw new ArgumentNullException(p);
        }

        internal static void ThrowEmptyCollection(string p)
        {
            throw new ArgumentException(string.Format("Empty collection: {0}", p));
        }
    }
}
